-- GENERATED SPELL FOR [Clockwork Mechanic] --


function spell0_34184(pUnit, Event) --@Ice Turret,Self--
pUnit:FullCastSpellOnTarget(64966,pUnit)
pUnit:RegisterEvent('Sorts_34184', 3000, 1)
end

function Sorts_34184(pUnit, Event)
local choix_sorts_34184 = math.random(0, 0)
if choix_sorts_34184 == 0 then
pUnit:RegisterEvent('spell0_34184', 1, 1)
end
end

function mob34184_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34184', math.random(1500, 3000), 1)
end

function mob34184_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34184_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34184_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34184, 1, 'mob34184_Action')
RegisterUnitEvent(34184, 2, 'mob34184_Leave')
RegisterUnitEvent(34184, 3, 'mob34184_Kill')
RegisterUnitEvent(34184, 4, 'mob34184_Die')
